<template>
	<view>
		<view class="main">
			<image class="image1" src="../../../static/users/overping.png" mode=""></image>
			<view class="title">
				这是一个商品标题，这是一个商品标题，这是...
			</view>
			<view class="num">
				XXX商品 ×1
			</view>
			<view class="price">
				¥ <text>188</text>
			</view>
			
		   <view class="textarea">
		   	<textarea value="" maxlength="100" placeholder="请输入评论(100字)" />
		   </view>
		   
		   <u-upload width="193" height="193" max-count="9"  max-size="1024*7" image-mode="aspectFill" class="upload" :ref="pick0"
		    :action="action" :auto-upload="false" del-bg-color="#000" :file-list="fileList"></u-upload>
		</view>
		
		
		<view class="bottoms" @click="submit">
			发布
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked: false,
				action: 'http://www.example.com/upload',
				fileList: []
			}
		},
		methods: {
			change() {
				console.log(this.checked);
			},
			submit(){
				this.$refs.pick0.upload();
				console.log(this.$refs.pick0.lists);
			},
			changes(){
				console.log(this.fileList);
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
	}

	.main {
		margin: 28rpx auto;
		padding: 30rpx;
		width: 690rpx;
		// height: 570rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
		position: relative;

		.image1 {
			width: 200rpx;
			height: 150rpx;
		}

		.title {
			position: absolute;

			top: 49rpx;
			left: 250rpx;
			width: 400rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #000000;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 2;
			overflow: hidden;
		}

		.num {
			position: absolute;
			top: 139rpx;
			left: 250rpx;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #666666;
		}

		.price {
			position: absolute;
			right: 30rpx;
			top: 135rpx;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FF5757;

			text {
				font-size: 30rpx;
			}
		}
		.textarea{
			margin-top: 28rpx;
			padding: 33rpx;
			width: 630rpx;
			height: 180rpx;
			background: #F2F4FA;
			border-radius: 30rpx;
			textarea{
				height: 114rpx;
			}
		}
        
	}
	.bottoms{
		position:absolute;
		bottom: 0;
		left: 30rpx;
		text-align: center;
		width: 690rpx;
		height: 100rpx;
		background: #181818;
		box-shadow: 0px 10rpx 40px 0px rgba(24, 24, 24, 0.26);
		border-radius: 50rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 50px;
	}
</style>
